package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.entity.Login;
import com.repository.LoginDao;
import com.service.base.BaseServiceImp;

@Service("LoginService")
public class LoginServiceImp extends BaseServiceImp<Login> implements LoginService{
	@Autowired
	private LoginDao loginDao;
	
	@Override
	@Transactional
	public boolean insertprice(Login o) {
		Login uir=new Login();
		List<Login> users=loginDao.find(uir);
		if (users.size()>0) {
			return false;
		}
		return true;
	}
	
}
